<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="../node_modules/@vue/runtime-dom/dist/runtime-dom.global.js"></script>
    <div id="app"></div>
    <script>
        let {
            createApp,
            h,
            reactive,
            onBeforeMount,
            getCurrentInstance 
        } = VueRuntimeDOM;
        let App = {
            setup(props, context) {
                const instance = getCurrentInstance();
                // console.log(instance)

                onBeforeMount(()=>{
                    console.log(2)
                    console.log(this)
                })
                onMounted(() => {
                  console.log(55)  
                })
                return ()=>{
                    return  h('li', {
                            key: 'b'
                        }, 'b');
                }
            }
        }
        // 参数 1 组件以哪个组件作为入口 ， 2 props
        createApp(App, {
        }).mount('#app')
    </script>
</body>

</html>